#ifndef __46CUSTOMTIME_H__
#define __46CUSTOMTIME_H__

class CustomTime
{
private:
    int hours;
    int minutes;

public:
    CustomTime();
    CustomTime(int hour, int min = 0);
    ~CustomTime();

    void addMin(int m);
    void addHour(int hour);
    void resetCustomTime(int hours = 0, int minutes = 0);
    // CustomTime sumCustomTime(const CustomTime &time);
    CustomTime operator+(const CustomTime &time) const;
    CustomTime operator*(const CustomTime &time) const;
    void show() const;

    // 友元函数
    friend CustomTime operator *(double num, const CustomTime &ct);
    // friend void operator << (std::ostream & os, const CustomTime & t);
    friend std::ostream & operator<<(std::ostream & os, const CustomTime & t){

};

#endif // __46CUSTOMTIME_H__